<template>
 <div>
   <h2>练习一</h2>
  <ul>
    <li v-for="(item,index) in num" :key="index">{{item}}</li>
  </ul>
  <button @click='fn'>走一走</button>
 </div>
</template>

<script>
export default {
data() {
  return {
    num:['美女','帅哥','程序员']
  }
},
methods:{
  fn() {
    this.num.push(this.num[0])
    this.num.splice(0,1)
  }
}

}
</script>

<style>

</style>